-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(automerge): implement exponential backoff #181
Conversation
@@ -711,7 +738,7 @@ func createCommit(ghPrClientDetails GhPrClientDetails, treeEntries []*github.Tre | |||
Tree: tree, | |||
} | |||
|
|||
commit, resp, err := ghPrClientDetails.GhClientPair.v3Client.Git.CreateCommit(ghPrClientDetails.Ctx, ghPrClientDetails.Owner, ghPrClientDetails.Repo, newCommitConfig) | |||
commit, resp, err := ghPrClientDetails.GhClientPair.v3Client.Git.CreateCommit(ghPrClientDetails.Ctx, ghPrClientDetails.Owner, ghPrClientDetails.Repo, newCommitConfig, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CreateCommit
's signature has changed since GH client v52 that requires an additional parameter for CreateCommitOptions
which is used for signing commits
I'll fix the linting error, most likely tomorrow. |
Yeah, the docker build is unrelated. |
@Oded-B linting issues fixed, can you approve workflows and tale a look? |
* Add pagination to "List files in PR" api call (#174) * Support pagination for "List files in PR" API call +relevant test * Update golangci/golangci-lint-action action to v6 (#170) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update GitHub Actions (#144) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update module github.com/google/go-github/v53 to v62 (#173) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update all non-major dependencies (#136) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(automerge): implement exponential backoff (#181) * fix(automerge): implement exponential backoff * Update internal/pkg/githubapi/github.go * Fix > 250 char Branch name issue (#188) * Fix > 250 char Branch name issue Move branch name generation to a function. Limit original branch substing to 200 charts Switch target paths substring to sha1 of the target paths. Tests * Address issues raised in PR review: Rename a var Used Repeat to avoid hardcoding long string Made some test input **a bit** more realistic * Cleanup some conflict marker and add comment * Fix some merge bug --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benas Taurosevičius <[email protected]>
Description
Retry mechanism with exponential backoff is implemented for automatically merging PRs.
Resolves #176
Type of Change
Checklist